﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NFine.Data;
using NFine.Domain._03_Entity.Biz;

namespace NFine.Domain._04_IRepository.Biz
{
    public interface IMemberBonusRepository : IRepositoryBase<MemberBonusEntity>
    {
        decimal? GetMemberCurMonthBonus(string memberId);

        /// <summary>
        /// 获得账户余额
        /// </summary>
        /// <param name="memberId"></param>
        /// <returns></returns>
        decimal GetMemberCurAmount(string memberId);
        /// <summary>
        /// 获得账户总额
        /// </summary>
        /// <param name="memberId"></param>
        /// <returns></returns>
        decimal GetMemberSumAmount(string memberId);
        /// <summary>
        /// 获取用户月收入总和
        /// </summary>
        /// <param name="memberId"></param>
        /// <returns></returns>
        decimal GetMemberSumAmountForMonth(string memberId);
    }
}
